const { Op } = require("sequelize");
const { Returnrate } = require("../../models");
const { NotFounError, success, fail } = require("../../utils/response");
// 查询文章列表处理函数
exports.getdata = async (req, res) => {
  try {
    const { count, rows } = await Returnrate.findAndCountAll();

    success(
      res,
      "查询最近七天退货率销售成功!",
      {
        data: rows,
      },
      200
    );
  } catch (error) {
    fail(res, error);
  }
};
